interface IComponent{
  name:string;
  display():void;
}

class ListBox implements IComponent{
  name:string = 'ListBox';
  display():void{
    console.log(`显示组件${this.name}`);
  }
}

class TextBox implements IComponent{
  name:string = 'TextBox';
  display():void{
    console.log(`显示组件${this.name}`);
  }
}

export {IComponent, ListBox, TextBox};